package org.acghub.mtdb.core;

import org.acghub.mtdb.common.exception.MtdbKeyVerifyException;

/**
 * @author zhouhe
 */
public interface Crud<K, V> {

    boolean exists(K key);

    V select(K key);

    V get(K key);

    boolean insert(K key, V value) throws NullPointerException, MtdbKeyVerifyException;

    boolean delete(K key);

    void truncate();

    long count();

}
